package com.hk.service.order.impl;

import org.springframework.stereotype.Service;

import com.hk.commons.LongId;
import com.hk.commons.entity.order.Reservation;
import com.hk.dao.base.impl.BaseServiceImpl;
import com.hk.service.order.IReservation;

@Service
public class ReservationImpl extends BaseServiceImpl<Reservation> implements
		IReservation {

	@Override
	public Reservation findById(long id) {

		return getById(id);
	}

	@Override
	public Long add(Reservation u) {
		Long id = LongId.get();
		u.setId(id);
		u.setCts(System.currentTimeMillis());
		super.save(u);
		return id;
	}

}
